package com.zm.spring.demo.web;

import com.zm.spring.demo.biz.IUserBiz;
import com.zm.spring.demo.biz.UserBiz;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Controller;

import java.util.HashMap;
import java.util.Map;

//控制层组件(SpringMVC控制器)=》Servlet
@Data
@Controller("userControllerAuto")
//如果不设置name，那么默认为userController 类名首字母小写
public class UserController {
    @Autowired
    private IUserBiz userBiz;

    public Map findById(int id){
//        int i = 1/0;
        System.out.println("------findById------");
        return new HashMap<>();
    }

    public Map deleteById(int id){
        System.out.println("------deleteById------");
        return new HashMap<>();
    }

}
